package jp.bsws.action.common;

/*
 * ログインサンプル
 */
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import jp.bsws.common.BSWSConstants;

import com.opensymphony.xwork2.ActionSupport;
/*
 * メインメニューアクションクラス
 */
public class TopAction extends ActionSupport {
	private static final long serialVersionUID = 1L;
	// ログインユーザ
	private String mail_address;
	private String password_cod;

	public String execute() {
		return SUCCESS;
	}
	public String logout() {
		HttpSession session = ServletActionContext.getRequest().getSession();
		session.removeAttribute(BSWSConstants.KEY_SESSION);
		return SUCCESS;
	}
	public String getMail_address() {
		return mail_address;
	}
	public void setMail_address(String mail_address) {
		this.mail_address = mail_address;
	}
	public String getPassword_cod() {
		return password_cod;
	}
	public void setPassword_cod(String password_cod) {
		this.password_cod = password_cod;
	}

}